package com.qf.pojo;

import java.util.ArrayList;
import java.util.List;

public class XiadanExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public XiadanExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andXidIsNull() {
            addCriterion("xid is null");
            return (Criteria) this;
        }

        public Criteria andXidIsNotNull() {
            addCriterion("xid is not null");
            return (Criteria) this;
        }

        public Criteria andXidEqualTo(Integer value) {
            addCriterion("xid =", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidNotEqualTo(Integer value) {
            addCriterion("xid <>", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidGreaterThan(Integer value) {
            addCriterion("xid >", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidGreaterThanOrEqualTo(Integer value) {
            addCriterion("xid >=", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidLessThan(Integer value) {
            addCriterion("xid <", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidLessThanOrEqualTo(Integer value) {
            addCriterion("xid <=", value, "xid");
            return (Criteria) this;
        }

        public Criteria andXidIn(List<Integer> values) {
            addCriterion("xid in", values, "xid");
            return (Criteria) this;
        }

        public Criteria andXidNotIn(List<Integer> values) {
            addCriterion("xid not in", values, "xid");
            return (Criteria) this;
        }

        public Criteria andXidBetween(Integer value1, Integer value2) {
            addCriterion("xid between", value1, value2, "xid");
            return (Criteria) this;
        }

        public Criteria andXidNotBetween(Integer value1, Integer value2) {
            addCriterion("xid not between", value1, value2, "xid");
            return (Criteria) this;
        }

        public Criteria andXcountIsNull() {
            addCriterion("xcount is null");
            return (Criteria) this;
        }

        public Criteria andXcountIsNotNull() {
            addCriterion("xcount is not null");
            return (Criteria) this;
        }

        public Criteria andXcountEqualTo(Integer value) {
            addCriterion("xcount =", value, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountNotEqualTo(Integer value) {
            addCriterion("xcount <>", value, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountGreaterThan(Integer value) {
            addCriterion("xcount >", value, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("xcount >=", value, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountLessThan(Integer value) {
            addCriterion("xcount <", value, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountLessThanOrEqualTo(Integer value) {
            addCriterion("xcount <=", value, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountIn(List<Integer> values) {
            addCriterion("xcount in", values, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountNotIn(List<Integer> values) {
            addCriterion("xcount not in", values, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountBetween(Integer value1, Integer value2) {
            addCriterion("xcount between", value1, value2, "xcount");
            return (Criteria) this;
        }

        public Criteria andXcountNotBetween(Integer value1, Integer value2) {
            addCriterion("xcount not between", value1, value2, "xcount");
            return (Criteria) this;
        }

        public Criteria andXpeopleIsNull() {
            addCriterion("xpeople is null");
            return (Criteria) this;
        }

        public Criteria andXpeopleIsNotNull() {
            addCriterion("xpeople is not null");
            return (Criteria) this;
        }

        public Criteria andXpeopleEqualTo(String value) {
            addCriterion("xpeople =", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleNotEqualTo(String value) {
            addCriterion("xpeople <>", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleGreaterThan(String value) {
            addCriterion("xpeople >", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleGreaterThanOrEqualTo(String value) {
            addCriterion("xpeople >=", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleLessThan(String value) {
            addCriterion("xpeople <", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleLessThanOrEqualTo(String value) {
            addCriterion("xpeople <=", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleLike(String value) {
            addCriterion("xpeople like", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleNotLike(String value) {
            addCriterion("xpeople not like", value, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleIn(List<String> values) {
            addCriterion("xpeople in", values, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleNotIn(List<String> values) {
            addCriterion("xpeople not in", values, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleBetween(String value1, String value2) {
            addCriterion("xpeople between", value1, value2, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXpeopleNotBetween(String value1, String value2) {
            addCriterion("xpeople not between", value1, value2, "xpeople");
            return (Criteria) this;
        }

        public Criteria andXphoneIsNull() {
            addCriterion("xphone is null");
            return (Criteria) this;
        }

        public Criteria andXphoneIsNotNull() {
            addCriterion("xphone is not null");
            return (Criteria) this;
        }

        public Criteria andXphoneEqualTo(String value) {
            addCriterion("xphone =", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneNotEqualTo(String value) {
            addCriterion("xphone <>", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneGreaterThan(String value) {
            addCriterion("xphone >", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneGreaterThanOrEqualTo(String value) {
            addCriterion("xphone >=", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneLessThan(String value) {
            addCriterion("xphone <", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneLessThanOrEqualTo(String value) {
            addCriterion("xphone <=", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneLike(String value) {
            addCriterion("xphone like", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneNotLike(String value) {
            addCriterion("xphone not like", value, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneIn(List<String> values) {
            addCriterion("xphone in", values, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneNotIn(List<String> values) {
            addCriterion("xphone not in", values, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneBetween(String value1, String value2) {
            addCriterion("xphone between", value1, value2, "xphone");
            return (Criteria) this;
        }

        public Criteria andXphoneNotBetween(String value1, String value2) {
            addCriterion("xphone not between", value1, value2, "xphone");
            return (Criteria) this;
        }

        public Criteria andXpriceIsNull() {
            addCriterion("xprice is null");
            return (Criteria) this;
        }

        public Criteria andXpriceIsNotNull() {
            addCriterion("xprice is not null");
            return (Criteria) this;
        }

        public Criteria andXpriceEqualTo(Float value) {
            addCriterion("xprice =", value, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceNotEqualTo(Float value) {
            addCriterion("xprice <>", value, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceGreaterThan(Float value) {
            addCriterion("xprice >", value, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceGreaterThanOrEqualTo(Float value) {
            addCriterion("xprice >=", value, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceLessThan(Float value) {
            addCriterion("xprice <", value, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceLessThanOrEqualTo(Float value) {
            addCriterion("xprice <=", value, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceIn(List<Float> values) {
            addCriterion("xprice in", values, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceNotIn(List<Float> values) {
            addCriterion("xprice not in", values, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceBetween(Float value1, Float value2) {
            addCriterion("xprice between", value1, value2, "xprice");
            return (Criteria) this;
        }

        public Criteria andXpriceNotBetween(Float value1, Float value2) {
            addCriterion("xprice not between", value1, value2, "xprice");
            return (Criteria) this;
        }

        public Criteria andJidIsNull() {
            addCriterion("jid is null");
            return (Criteria) this;
        }

        public Criteria andJidIsNotNull() {
            addCriterion("jid is not null");
            return (Criteria) this;
        }

        public Criteria andJidEqualTo(Integer value) {
            addCriterion("jid =", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotEqualTo(Integer value) {
            addCriterion("jid <>", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidGreaterThan(Integer value) {
            addCriterion("jid >", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidGreaterThanOrEqualTo(Integer value) {
            addCriterion("jid >=", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidLessThan(Integer value) {
            addCriterion("jid <", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidLessThanOrEqualTo(Integer value) {
            addCriterion("jid <=", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidIn(List<Integer> values) {
            addCriterion("jid in", values, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotIn(List<Integer> values) {
            addCriterion("jid not in", values, "jid");
            return (Criteria) this;
        }

        public Criteria andJidBetween(Integer value1, Integer value2) {
            addCriterion("jid between", value1, value2, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotBetween(Integer value1, Integer value2) {
            addCriterion("jid not between", value1, value2, "jid");
            return (Criteria) this;
        }

        public Criteria andFidIsNull() {
            addCriterion("fid is null");
            return (Criteria) this;
        }

        public Criteria andFidIsNotNull() {
            addCriterion("fid is not null");
            return (Criteria) this;
        }

        public Criteria andFidEqualTo(Integer value) {
            addCriterion("fid =", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotEqualTo(Integer value) {
            addCriterion("fid <>", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThan(Integer value) {
            addCriterion("fid >", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fid >=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThan(Integer value) {
            addCriterion("fid <", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThanOrEqualTo(Integer value) {
            addCriterion("fid <=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidIn(List<Integer> values) {
            addCriterion("fid in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotIn(List<Integer> values) {
            addCriterion("fid not in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidBetween(Integer value1, Integer value2) {
            addCriterion("fid between", value1, value2, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotBetween(Integer value1, Integer value2) {
            addCriterion("fid not between", value1, value2, "fid");
            return (Criteria) this;
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}